<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<h1>欢迎访问主页</h1>

<!-- 认证处理 -->
<span shiro:authenticated="">
    认证通过展示内容
</span>
<br>
<span shiro:notAuthenticated="">
    没有认证展示的内容
</span>
<br>
<!-- 授权角色 -->
<span shiro:hasRole="admin">
    this is admin
</span>
<br>
<span shiro:hasPermission="user:*:01">
    具有用户模块权限
</span>
<br>
<span shiro:principal=""></span>
</body>
</html>